﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class LinhVuc : XPObject
    {
        public LinhVuc()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public LinhVuc(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        string fTenLinhVuc = string.Empty;
        [Size(500)]
        public string TenLinhVuc
        {
            get { return fTenLinhVuc; }
            set { SetPropertyValue<string>("TenLinhVuc", ref fTenLinhVuc, value); }
        }
        string fMoTa;
        [Size(1000)]
        public string MoTa
        {
            get { return fMoTa; }
            set { SetPropertyValue<string>("MoTa", ref fMoTa, value); }
        }
        [Association(@"CongTyReferencesLinhVuc", typeof(CongTy))]
        public XPCollection<CongTy> CongTys { get { return GetCollection<CongTy>("CongTys"); } }
    }
}
